//
//  ZYXClassNameHeaderView.m
//  RuiBeiKang
//
//  Created by iOS开发1 on 2019/1/8.
//  Copyright © 2019年 JW. All rights reserved.
//

#import "ZYXClassNameHeaderView.h"

@implementation ZYXClassNameHeaderView

-(void)awakeFromNib{
     [super awakeFromNib];
}
-(void)setModel:(ZYXClassNameModel *)model{
    _model = model;
    self.titleLabel.text = model.zang;
    if (model.isTop) {
        self.imgView.image = [UIImage imageNamed:@"dakaijiantou"];
    }else{
        self.imgView.image = [UIImage imageNamed:@"guanbijiantou"];
    }
}
- (IBAction)clickOpenBtn:(UIButton *)sender {
    [self.delegate didClickTopBtn:self.indexPath
                          andView:self];
}
@end
